

assume cs:codesg

codesg segment
	dw 1122h,3344h,5566h,7788h,99aah,0bbcch,0ddeeh,0ff00h
	dw 0,0,0,0,0,0,0,0 ;第二版课本上定义的是16个，但我认为用8个即可，对应下面的sp也设置为20h
	
start:	mov ax,cs
		mov ss,ax
		mov sp,20h
		
		mov bx,0
		mov cx,8
	s:	push cs:[bx]
		add bx,2
		loop s
		
		mov bx,0 
		mov cx,8 
	s1:	pop cs:[bx]
		add bx,2
		loop s1 
		
		mov ax,4c00h
		int 21h
codesg ends

end start
